package cn.yangsen.simplebeanmanager.bean.html;

import lombok.Getter;
import lombok.Setter;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("input")
public class Button extends Input
{
	@Getter
	@XStreamAsAttribute
	private final InputType type = InputType.Button;

	@Getter
	@Setter
	@XStreamAsAttribute
	private String onclick;

	public Button()
	{
	}

	public Button(String value, String onclick)
	{
		this();
		setValue(value);
		setOnclick(onclick);
	}
}
